package com.personnel.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;
import java.io.Serializable;

/**
 * (Credential)实体类
 *
 * @author yuepeng
 * @since 2022-03-29 17:37:30
 * @version 1.0
 */
public class Credential implements Serializable {
    private static final long serialVersionUID = 213261121187720547L;
    /**
    * 主键id
    */
    private Integer credentialId;
    /**
    * 关联人员id
    */
    private Integer credentialStaffId;
    /**
    * 证件类型
    */
    private String type;
    /**
    * 证件编号
    */
    private String credentialNumber;
    /**
    * 发证机构
    */
    private String certifyingAuthority;
    /**
    * 生效日期
    */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Timestamp validTime;
    /**
    * 到期日期
    */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Timestamp expireTime;
    /**
    * 备注
    */
    private String remark;
    /**
    * 附件
    */
    private String credentialFile;
    /**
    * 关联Staff
    */
    private Staff staff;
    /**
    * 关联部门
    */
    private Department department;

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    public Staff getStaff() {
        return staff;
    }

    public void setStaff(Staff staff) {
        this.staff = staff;
    }

    public Integer getCredentialId() {
        return credentialId;
    }

    public void setCredentialId(Integer credentialId) {
        this.credentialId = credentialId;
    }
        
    public Integer getCredentialStaffId() {
        return credentialStaffId;
    }

    public void setCredentialStaffId(Integer credentialStaffId) {
        this.credentialStaffId = credentialStaffId;
    }
        
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCredentialNumber() {
        return credentialNumber;
    }

    public void setCredentialNumber(String credentialNumber) {
        this.credentialNumber = credentialNumber;
    }

    public String getCertifyingAuthority() {
        return certifyingAuthority;
    }

    public void setCertifyingAuthority(String certifyingAuthority) {
        this.certifyingAuthority = certifyingAuthority;
    }

    public Timestamp getValidTime() {
        return validTime;
    }

    public void setValidTime(Timestamp validTime) {
        this.validTime = validTime;
    }

    public Timestamp getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Timestamp expireTime) {
        this.expireTime = expireTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
        
    public String getCredentialFile() {
        return credentialFile;
    }

    public void setCredentialFile(String credentialFile) {
        this.credentialFile = credentialFile;
    }

}